package beanstao.util.type.base;

import java.sql.Timestamp;
import java.util.Calendar;

import beanstao.util.type.Castor;

public class Calendar2Timestamp extends Castor<Calendar, Timestamp>
{

	@Override
	public Timestamp cast(Calendar src, Class<?> toType, String... args)
	{
		long ms = src.getTimeInMillis();
		return new Timestamp(ms);
	}
}
